﻿using System;
using System.Collections.Generic;
using DataLayer.Entities;
using DataLayer.Implementations;
using DonutMgmtSystemFoundation.Helpers;
using DonutMgmtSystemFoundation.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DmsfTestProject
{
    [TestClass]
    public class CalendarTest
    {
        [TestMethod]
        public void TestGetActiveUsersOrderedByUserOrder()
        {
            UserOrderApplication ua = new UserOrderApplication();
            IList<UserOrder> user = ua.GetActiveUsersOrderedByUserOrder();

            Assert.AreEqual(user.Count, 2);
        }

        [TestMethod]
        public void TestCalendarGetEvents()
        {
            CalendarHelper helper = new CalendarHelper();
            List<CalendarEventModel> events = helper.GetEvents();

            Assert.IsTrue(events.Count > 0);
        }
    }
}
